home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / sound / speaker.h < prev    next >
C/C++ Source or Header  |  2000-02-19  |  758b  |  26 lines

  1. /**********************************************************************
  2.  
  3.     speaker.h
  4.     Sound driver to emulate a simple speaker,
  5.     driven by one or more output bits
  6.  
  7. **********************************************************************/
  8. #ifndef SPEAKER_H
  9. #define SPEAKER_H
  10. #define MAX_SPEAKER 2
  11.  
  12. struct Speaker_interface
  13. {
  14.     int num;
  15.     int mixing_level[MAX_SPEAKER];    /* mixing level in percent */
  16.     int num_level[MAX_SPEAKER];     /* optional: number of levels (if not two) */
  17.     INT16 *levels[MAX_SPEAKER];     /* optional: pointer to level lookup table */
  18. };
  19.  
  20. int speaker_sh_start (const struct MachineSound *msound);
  21. void speaker_sh_stop (void);
  22. void speaker_sh_update (void);
  23. void speaker_level_w (int which, int new_level);
  24. #endif
  25.  
  26.